﻿using Inovout.Models;

namespace Inovout.YunYao.Models
{
    public abstract class BaseLocation : DataObject
    {
        public virtual string Name { get; set; }
        public virtual Location Parent { get; set; }
        public virtual long ZoneCode { get; set; }
        public virtual int? ScopeCode { get; set; }
        public virtual string Code { get { return ZoneCode.ToString() + (ScopeCode.HasValue ? ScopeCode.ToString() : string.Empty); } }
    }
}
